<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<div class="container_0 clearfix">
	<div class="box no-border">
		<div class="header">
			<h2>${pageTitle}</h2>
		</div>
		<isperp:grid url="task/planTask/list" gridId="planTaskGrid" altRows="true"
			gridTitle="${pageTitle}" pager="planTaskPager" cusFormatterActions="true"
			cusEditUrl="task/planTask/edit" ondbClickRowEvent="planTaskGrid.edit(rowid);"
			multiselect="false" cusDeleteUrl="task/planTask/delete" editOrDeleteRightControl="true"
			excelExportUrl="task/planTask/excelExport" cusDialogWidth="700"
			cusDialogHeight="600">

			<jsp:attribute name="toolbar">
 				<isperp:toolbar id="planTaskToolbar">
	 				<isperp:button id="planTaskCreate" icon="icon-plus" text="新增"
						onclick="planTaskGrid.create();"></isperp:button>
	 				
 				</isperp:toolbar>
			</jsp:attribute>

			<jsp:attribute name="searchbar">
				<table class="search-table">
					<tbody>
					    <tr>
							<td align="right">项目：</td>
							<td><form:select path="projects"  name="${projectId}" 
									items="${projects}" itemLabel="name" itemValue="id"
									cssClass="search" />
							</td> 
							<td align="right">负责人：</td>
							<td><input type="text" field="taskPrincipalName" op="cn">
							</td>
						</tr>
						<tr>
							<td align="right">任务编号：</td>
							<td><input type="text" field="taskCode" op="cn">
							</td>
							<td align="right">任务名称：</td>
							<td><input type="text" field="taskName" op="cn">
							</td>
						</tr>
					</tbody>
				</table>
			</jsp:attribute>
			<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="taskCode" title="任务编号" width="80">
				</isperp:column>
				<isperp:column name="taskName" title="任务名称" width="150">
				</isperp:column>
				<isperp:column name="projectStageName" title="项目阶段" width="80" summaryType="projectStageName">
				</isperp:column>
				<isperp:column name="taskContent" title="任务内容" width="80">
				</isperp:column>
				<isperp:column name="taskTarget" title="任务目标" width="80">
				</isperp:column>
				<isperp:column name="taskDeliverables" title="交付标准" width="80">
				</isperp:column>
				<isperp:column name="taskPriorityName" title="重要程度" width="80">
				</isperp:column>
				<isperp:column name="taskPrincipalName" title="负责人" width="80">
				</isperp:column>
				<isperp:column name="excuteTypeName" title="执行类型" width="80">
				</isperp:column> 
				<isperp:column name="createTime" title="创建时间" width="80">
				</isperp:column>
				<isperp:column name="createMan" title="创建人" width="80">
				</isperp:column>
				
			</jsp:body>

		</isperp:grid>
	</div>

</div>
